package com.spring.bean;

import com.spring.aop.AopTarget;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by dong peng on 2018/1/6.
 */
public class TestMain {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-context.xml");
        MyBean myBean = (MyBean) context.getBean("myBean");
        myBean.print();
    }
}
